package com.zhoutao.blog.seven.model.detail;

import com.zhoutao.blog.seven.model.response.Book;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.beans.BeanUtils;

@Data
@EqualsAndHashCode(callSuper = true)
public class BookDetail extends Book {

    private boolean hasChapter;

    public BookDetail(Book book) {
        BeanUtils.copyProperties(book, this);
        this.hasChapter = false;
    }
}
